package com.halen.user.service;


import com.halen.user.dao.TeacherMapper;
import com.halen.user.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("teacherServiceImpl")
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    @Transactional
    public int createTeacher(Teacher teacher) {

        teacherMapper.insertSelective(teacher);
        return 0;
    }
}
